package org.patterns.behavior.chainofresponsibility;

/**
 * 采购请求类
 */
public class PurchaseRequest {
    private double amount;  //采购金额
    private int number;  //采购单编号
    private String purpose;  //采购目的

    /**
     * 构造方法，用于创建采购请求对象
     * @param amount 采购金额
     * @param number 采购单编号
     * @param purpose 采购目的
     */
    public PurchaseRequest(double amount, int number, String purpose) {
        this.amount = amount;
        this.number = number;
        this.purpose = purpose;
    }

    /**
     * 设置采购金额
     * @param amount 采购金额
     */
    public void setAmount(double amount) {
        this.amount = amount;
    }

    /**
     * 获取采购金额
     * @return 采购金额
     */
    public double getAmount() {
        return this.amount;
    }

    /**
     * 设置采购单编号
     * @param number 采购单编号
     */
    public void setNumber(int number) {
        this.number = number;
    }

    /**
     * 获取采购单编号
     * @return 采购单编号
     */
    public int getNumber() {
        return this.number;
    }

    /**
     * 设置采购目的
     * @param purpose 采购目的
     */
    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    /**
     * 获取采购目的
     * @return 采购目的
     */
    public String getPurpose() {
        return this.purpose;
    }
}
